package com.ai.tool.controller

import com.ai.tool.service.SignService
import com.alibaba.fastjson2.JSONObject
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController

@RestController
class SignController {


    @Autowired
    lateinit var signService: SignService

    @GetMapping("/sign")
    fun sign(account: String, password: String): JSONObject {
        return signService.sign(account, password)
    }

    @GetMapping("/test")
    fun test() {
        signService.getAddress()
    }
}